﻿using System;

namespace Noria.CssTool
{
    class Base64Sprite : ISprite
    {
        public void Run(string[] files)
        {
            foreach (var file in files)
            {
                Logger.Info("processing file {0}...", file);

                try
                {
                    var worker = new Base64SpriteWorker(file);
                    worker.DoWork();
                }
                catch (Exception e)
                {
                    Logger.Error(e, "failure processing file {0}", file);
                }
            }
        }

    }
}